import request from '@/utils/request'

export const getRoles = function(obj){
    return request.get('/api/sys/role',{params:obj})
}

export const delRoles = function(id){
    return request.delete('/api/sys/role/' + id)
}
// 添加请求
export const addRole = function(data){
    return request.post('/api/sys/role/', data)
}
// 编辑请求
export const editRole = function(data){
    return request.put('/api/sys/role/' + data.id, data)
}